package com.gxy.learn.backup.shiroauth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxy.learn.backup.shiroauth.entity.SysMenu;
import com.gxy.learn.backup.shiroauth.vo.UserMenuVO;

import java.util.List;

/**
 * author: Gao xueyong
 * Create at: 2022/1/4 下午11:51
 */
public interface SysMenuService extends IService<SysMenu> {
    /**
     * 根据登录账号获取菜单信息
     *
     * @param account
     * @return
     */
    List<UserMenuVO> getSysMenuByAccount(String account);


    /**
     * 根据接口或页面地址获取菜单
     *
     * @param href
     * @return
     */
    SysMenu getSysMenuByHref(String href);
}
